﻿using Ivory;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using DefCore.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DefCore.Mapping;
using DefCore;
using DefCore.Tools;

namespace Defender.Framework
{
    public sealed class IronCell : CellBase
    {
        public override bool IsBuildable
        {
            get { return State == CellState.Open; }
        }
        public override bool IsWalkable
        {
            get { return State == CellState.Open; }
        }

        public CellState State { get; private set; }
        public int Repository { get; set; }

        //ctor
        public IronCell(DungeonPos pos)
             : base(pos)
        {
            this.IsSelectable = false;
            State = CellState.Closed;
        }

        //Methods

        protected override void DrawCell(SpriteBatch batch, Rectangle drawingRect)
        {
            batch.Draw(TileBin.Instance.GetTile((int)(State == CellState.Open ? CellConverterEnum.Open : CellConverterEnum.IronOre)),
                drawingRect, Color.White);
        }
        protected override void SolveCell(InputControl control, GameTime time)
        {

        }
    }
}
